package com.mysoft.gfyx.marketdevelop.controller;


import com.mysoft.framework.modeling.dto.ListDataResult;
import com.mysoft.framework.modeling.dto.LoadDataParams;
import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.service.SearchService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@PubService(value = "/searchTakenLandPub", prefix = RequestPrefix.PUB)
@Tag(name = "找土地-PUB")
public class SearchTakenLandPubController {
    @Resource
    private SearchService searchService;

    // 土地储备列表搜索
    @PubAction(value = "/searchTakenLand", method = RequestMethod.POST)
    public ListDataResult searchTakenLand(@RequestBody LoadDataParams options) {
        return searchService.loadSearchTakenLandData(options);
    }
}